package cn.b.sky.admin.model;

import cn.b.sky.admin.utils.ManagementSecurity;

import java.util.Date;

/**
 * 
 * <strong>Title : ImeCommon.java<br></strong>
 * <strong>Package : cn.b.sky.common.model<br></strong>
 * <strong>Description : </strong>业务对象需要继承的父类，
 * 保存用户操作的一些属性<br> 
 * <strong>Create on : 2015-7-1 下午1:42:19<br></strong>
 * <p>
 * @author lidapeng<br>
 * @version <strong>v1.0.0</strong><br>
 * <br>
 * <strong>修改历史:</strong><br>
 * 修改人 | 修改日期 | 修改描述<br>
 * -------------------------------------------<br>
 * <br>
 * <br>
 */
public class ImeCommon {

  /**
   * 创建人
   */
  private String createUser;

  /**
   * 创建日期
   */
  private Date createDate;

  /**
   * 创建时间
   */
  private Date createDateTime;

  /**
   * 修改人
   */
  private String modifyUser;

  /**
   * 修改日期
   */
  private Date modifyDate;

  /**
   * 修改时间
   */
  private Date modifyDateTime;

  public String getCreateUser() {
    return createUser;
  }

  public void setCreateUser(String createUser) {
    this.createUser = createUser;
  }

  public Date getCreateDate() {
    return createDate;
  }

  public void setCreateDate(Date createDate) {
    this.createDate = createDate;
  }

  public Date getCreateDateTime() {

    return createDateTime;
  }

  public void setCreateDateTime(Date createTime) {
    this.createDateTime = createTime;
  }

  public String getModifyUser() {
    return modifyUser;
  }

  public void setModifyUser(String modifyUser) {
    this.modifyUser = modifyUser;
  }

  public Date getModifyDate() {
    return modifyDate;
  }

  public void setModifyDate(Date modifyDate) {
    this.modifyDate = modifyDate;
  }

  public Date getModifyDateTime() {
    return modifyDateTime;
  }

  public void setModifyDateTime(Date modifyTime) {
    this.modifyDateTime = modifyTime;
  }
  
  public void setCreateInfo() {
    this.setCreateDateTime(new Date());
    this.setCreateUser(ManagementSecurity.getCurrentUserCode());
    this.setModifyDateTime(new Date());
    this.setModifyUser(ManagementSecurity.getCurrentUserCode());
  }

}
